package designs.models.status.example.two;

public class Vehicle {
	static State moveState,restState;
	static State state;
	String name;
	public Vehicle(String name) {
		this.name = name;
		moveState = new VehicleMoveState();
		restState = new VehicleRestState();
		state = restState;
	}
	public void startUp() {
		state.startUp(this);
	}
	public void stop() {
		state.stop(this);
	}
	public static State getMoveState() {
		return moveState;
	}
	public static State getRestState() {
		return restState;
	}
	public String getName() {
		return name;
	}
	public static void setState(State state) {
		Vehicle.state = state;
	}
	
}
